package com.loop.inClass;

import java.util.TreeSet;

public class TreeDemo {
    public static void main(String[] args) {
        TreeSet<Student> set = new TreeSet<>();
        set.add(new Student("卢本伟",34));
        set.add(new Student("PDD",22));
        set.add(new Student("大司马",44));

        System.out.println(set);
    }
}
